package com.jianzong.lingxuan.enums;

import com.jianzong.lingxuan.error.IError;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 常用错误码
 */
@Getter
@AllArgsConstructor
public enum SysInfo{


    LOGIN_CHECK(403,"账户名或密码错误"),
    LOGIN_CHECK2(403,"账户名或密码为空"),
    LOGIN_CHECK3(403,"当前用户已被冻结"),
    PARAM_UNVALID(400, "参数校验失败"),
    NAME_EXISTS(403, "昵称或用户名已存在"),
    REGISTER_INFO(400, "注册成功"),
    ADD_SUCCESS(200, "添加成功"),
    FRIENDAPPLICANT_SUCCESS(200, "添加好友请求成功"),
    PK_CHECK_INFO(403, "您今日PK次数已达上限！请明日再来"),
    FRIEND_CHECK(403,"请勿重复添加已有朋友"),
    FRIEND_NOTFOUND(403,"未找到对应用户"),
    PARAM_NOTACTION(400, "未找到此方法");


    int code;
    String message;

}

